package edu.dayu.mapper;

import edu.dayu.pojo.Type;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TypeMapper {
    List<Type> listType();

    Type getType(int id);

    List<Integer> listType_Blogs(int typeid);

    List<Integer> listTag_Blogs(int tagid);

    Type getTypeName(Type type);

    Boolean saveType(Type type);

    Boolean updateType(Type type);

    void deleteType(int id);

    void deleteTypeBlog(int id);

    Integer countTopThree(int id);

    Integer countType();

}
